#ifndef _ESP_UART2_H_
#define _ESP_UART2_H_

#include "stm32f10x.h"
#include "com_usart2.h"

extern uint8_t  ESPGetTime;
extern uint16_t ESPGetCount;

uint8_t ESP_SendData(uint8_t *ch,uint16_t len);

#define TCP_Mode 1 
//#define UDP_Mode 1
uint8_t ESP_ApInit(void);
uint8_t ESP_StaInit(void);
uint8_t ESP_StaConnect(void);

void ESP_RecMessage(void);



#endif


